Use state for wiki profile card#982
Conversation
|
Deployment previews on netlify for branch
|
| computed: { | ||
| hasProfile: function () { | ||
| return !!this.profile.updated_at | ||
| return !!this.profile?.updated_at |
There was a problem hiding this comment.
ooh optional chaining (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining) fancy
tarrow
left a comment
There was a problem hiding this comment.
lgtm; only played with the "unhappy" path since there is no mock backend for successfully saving the updated profile.
Maybe we want to look at adding that later when we do T394521 ?
For now, you can test this patch using the Netlify production preview.
We should do that. |
|
Yeah, I went back and checked it worked for me. I also double checked that my Profile was there in the db with by manually poking around with |
No description provided.